package com.example.demo.mapper;

import com.example.demo.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
* @author 15085202591
* @description 针对表【goods】的数据库操作Mapper
* @createDate 2024-05-31 21:14:59
* @Entity com.example.demo.entity.Goods
*/
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    @Update("update goods set goods_name=#{goodsName},picture=#{picture},description=#{description},picture=#{picture}" +
            ",price=#{price},discounted_price=#{discountedPrice},number=#{number},type=#{type},business_id=#{businessId},address=#{address}"+
            " where id=#{id}")
    void updateGood(Goods good);
}




